package cn.quevo.core.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.Version;

/**
 * DO实体，数据库映射
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/3/9 下午2:21
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DoEntity extends BaseEntity {

    private static final long serialVersionUID = 527811426331331298L;
    /**
     * 版本号
     */
    @Version
    private Long verNum;
    @ColumnIgnore(insert = false, update = true)
    private Long addId;
    private Long lastId;

    public Long getAddId() {
        return super.getOperatorId();
    }

    public Long getLastId() {
        return super.getOperatorId();
    }
}
